<div class="PPT">
				<div class="Ppt_opt">

					<ul><?php $index=1;?>
				      {pc:document action="games"}
				    
				      {loop $data $games}
				      
				        <li id="hit_<?php echo $index;?>" onmouseover="setImgOn(<?php echo $index;?>,1);" style="cursor:pointer;" onmouseout="setImgOn(<?php echo $index;?>,2)" onclick="javascript:window.open('{$games[url]}')" class="un">
				        	<div class="popt_left"><a><strong>{$games[title]}</strong></a></div>
				          	<div class="popt_right">奖<?php echo $games[reward]/10000 ;?>万</div>
				        </li>
				       <?php $index++;?>
				       {/loop}
				        {/pc}	
				        
				       
				      {pc:document action="advert"}
				      {loop $data $ad}
				        <li id="hit_<?php echo $index;?>" onmouseover="setImgOn(<?php echo $index;?>,1);" style="cursor:pointer;" onmouseout="setImgOn(<?php echo $index;?>,2)" onclick="javascript:window.open('{$ad[url]}')" class="un">
				        	<div class="popt_left"><a><strong>{$ad[title]}</strong></a></div>
				          	<div class="popt_right">奖<?php echo $ad[do_coin]/10000 ;?>万</div>

				         <?php $index++;?>
				          {/loop}
				        {/pc}	
					</ul>
				</div>

				<div class="Ppt_img">
				<?php $img=1;?>
				 {pc:document action="games"}
				     {loop $data $games}
				<a id="img_<?php echo $img;?>" {if $img == 1}style="display: block;" {else}style="display: none;"{/if}onmouseover="setImgOn(<?php echo $img;?>,1);" onmouseout="setImgOn(<?php echo $img;?>,2)" href="{$games[url]}" title="{$games[title]}" target="_blank"><img src="{$games['thumb']}" border="0" height="181" width="570"></a>
				   <?php $img++;?>
				  {/loop}
				   {/pc}
				   
				    {pc:document action="advert"}
				     {loop $data $ad}
				<a id="img_<?php echo $img;?>" style="display: none;" onmouseover="setImgOn(<?php echo $img;?>,1);" onmouseout="setImgOn(<?php echo $img;?>,2)" href="{$ad[url]}" title="{$ad[title]}" target="_blank"><img src="{$ad['posterlogo']}" border="0" height="181" width="570"></a>
				  <?php $img++;?>
				  {/loop}
				   {/pc}		
				
				</div>
				<div class="clear"></div>
				<script language="javascript" type="text/javascript">
				var index = 1;
				var flag = 2;
				function setImgOn(n,f){
					flag = f;
					index= n;
					for(var i=1;i<5;i++){
						$("#img_"+i).css("display","none");
						$("#hit_"+i).attr("class","un");
					}
					$("#img_"+n).css("display","block");	
					$("#hit_"+n).attr("class","on");
				}
				var playTime = function(){
					if(flag==1){
						return true;
					}
					setImgOn(index,2);
					index++;
					if(index==5){
						index=1;
					}
				};
				$(window).bind("load",function(){
					setInterval(playTime,4000);
				}); 
				</script>

			</div>